package vitamin.demo.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * 负责人：某靓仔
 * User表对应实体类
 * 修改日期：1.15
 */
@ApiModel
@ToString
public class User {
    @ApiModelProperty(value = "用户名，最长16位，最短6位的唯一字符串")
    private String username;
    @ApiModelProperty(value = "密码，最长32位，最短12位的字符串")
    private String password;
    @ApiModelProperty(value = "昵称，最长12位，最短1位的字符串")
    private String nickname;
    @ApiModelProperty(value = "登录状态码token，固定20位的随机字符串")
    private String token_id;
    @ApiModelProperty(value = "用户类型，一位字符串，0代表管理员，1代表普通用户")
    private String user_type;

    public User() {
    }

    public User(String username, String password, String nickname, String token_id, String user_type) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.token_id = token_id;
        this.user_type = user_type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getToken_id() {
        return token_id;
    }

    public void setToken_id(String token_id) {
        this.token_id = token_id;
    }

    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

}
